<?php
/**
 * Created by stoneshi
 * Email: 2213152917@qq.com
 * Date: 2017/7/11
 * Time: 15:24
 */
use Tiger\Components\HttpClient;

require_once __DIR__.'/../vendor/autoload.php';

try
{
    $http = new HttpClient();

    $url  = 'http://www.baidu.com?sid=baidu&lyg_key=e73690be0a6bc553a9f99990a23ab4b5&lyg_remote=47.90.58.74:1234';

    $http->addRequestUrl($url)->setProxy('114.215.255.96', '1234')->setTimeout(5)->get();

    $response = $http->getResponse();

    print_r($response);
}
catch (Exception $e)
{
    print_r($e->getMessage());
}
